//
//  YSShareItemButtom.m
//  newYueLvHui
//
//  Created by Apple on 2020/9/12.
//  Copyright © 2020 Facebook. All rights reserved.
//

#import "YSShareItemButtom.h"

@implementation YSShareItemButtom

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.imageView.ys_width = 40;
    self.imageView.ys_height = 40;
    CGPoint center;
    center.x = self.frame.size.width/2;
    center.y = self.imageView.frame.size.height/2;
    self.imageView.center = center;
    
    CGRect newFrame = [self titleLabel].frame;
    newFrame.origin.x = 0;
    newFrame.origin.y = CGRectGetMaxY(self.imageView.frame) + 8;
    newFrame.size.width = self.frame.size.width;
    
    self.titleLabel.frame = newFrame;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

@end
